package com.bean;


import lombok.Data;

@Data
public class ResponseBean2 {
    private Integer code ;
    private String msg ;
    private Long count ;
    private Object data ;

    public final static ResponseBean2 OK = new ResponseBean2(200 , "success" , "") ;

    public ResponseBean2(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public ResponseBean2(Integer code, Long count , Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
        this.count = count ;
    }

    public ResponseBean2(Integer code, Integer count , Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
        this.count = count.longValue() ;
    }

    public ResponseBean2(Integer code, Long count , String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
        this.count = count ;
    }

    public ResponseBean2(Integer code, Integer count , String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
        this.count = count.longValue() ;
    }

    public ResponseBean2(){}
}
